<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>模块管理</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/style.css}"/>
    <script type="text/javascript" th:src="@{/laydate/laydate.js}"></script>
</head>
<body>

<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li><a href="../users/userList.html">系统管理</a></li>
        <li><a href="moduleList.html">模块管理</a></li>
        <li><a href="#">修改</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="formtitle"><span>模块信息</span></div>
    <form th:action="@{/sys/modules/updateModule}" method="post">
        <ul class="forminfo">
            <input type="hidden" name="moduleId" th:value="${byId.moduleId}"/>
            <input type="hidden" name="moduleState" value="1"/>
            <li>
                <label>模块名称</label>
                <input name="moduleRname" type="text" th:value="${byId.moduleRname}"
                       class="dfinput"/><i>必填，不能超过30个字符</i>
            </li>
            <li>
                <label>父模块</label>
                <select name="modulePid" class="dfselect">
                    <option th:each="parent:${parentModule}"
                            th:selected="${parent.moduleId==byId.modulePid?'true':'false'}"
                            th:value="${parent.moduleId}"
                            th:text="${parent.moduleRname}">系统管理
                    </option>
                </select>
            </li>
            <li>
                <label>URL</label>
                <input name="moduleMurl" type="text" th:value="${byId.moduleMurl}"
                       class="dfinput"/><i>必填，不能超过30个字符</i>
            </li>
            <li>
                <label>&nbsp;</label>
                <input name="" type="submit" class="btn" value="确认修改"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>
            </li>
        </ul>
    </form>
</div>
</body>
</html>
